iT邦幫忙

DAY 20
0

[老鷹之且戰且飛]系列 第 20

[老鷹之且戰且飛]Ebay API for PHP 2

  • 分享至 

  • xImage
  •  

這次打開keys.php

<?php
/*  ?2013 eBay Inc., All Rights Reserved */
/* Licensed under CDDL 1.0 -  http://opensource.org/licenses/cddl1.php */
    //show all errors - useful whilst developing
    error_reporting(E_ALL);

    // these keys can be obtained by registering at http://developer.ebay.com
    
     //選擇環境 true = 真實環境 false = 沙盤
    $production         = false;   // toggle to true if going against production
     //版本選擇
    $compatabilityLevel = 535;    // eBay API version
    
     //真實環境的參數
    if ($production) {
        $devID = 'DDD';   // these prod keys are different from sandbox keys
        $appID = 'AAA';
        $certID = 'CCC';
        //set the Server to use (Sandbox or Production)
        $serverUrl = 'https://api.ebay.com/ws/api.dll';      // server URL different for prod and sandbox
        //the token representing the eBay user to assign the call with
        $userToken = 'YOUR_PROD_TOKEN';         
    } else {  
          //沙盤環境的參數
        // sandbox (test) environment
        $devID = 'DDD_SAND';         // insert your devID for sandbox
        $appID = 'AAA_SAND';   // different from prod keys
        $certID = 'CCC_SAND';  // need three 'keys' and one token
        //set the Server to use (Sandbox or Production)
        $serverUrl = 'https://api.sandbox.ebay.com/ws/api.dll';
        // the token representing the eBay user to assign the call with
        // this token is a long string - don't insert new lines - different from prod token
        $userToken = 'SANDBOX_TOKEN';                
    }
   
   
?>

參數在哪呢??
請參考下方圖示

待續....


上一篇
[老鷹之且戰且飛]Ebay API for PHP 1
下一篇
[老鷹之且戰且飛]Ebay API for PHP 3
系列文
[老鷹之且戰且飛]30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言